package com.dsh.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dsh.common.utils.PageUtils;
import com.dsh.gulimall.member.entity.MemberEntity;
import com.dsh.gulimall.member.exception.PhoneExistException;
import com.dsh.gulimall.member.exception.UsernameExistException;
import com.dsh.gulimall.member.vo.MemberRegistVo;
import com.dsh.gulimall.member.vo.MemberUserLoginVo;

import java.util.Map;

/**
 * 会员
 *
 * @author dsh
 * @email 3090930041@qq.com
 * @date 2022-04-25 21:44:20
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUserNameUnique(String username) throws UsernameExistException;

    MemberEntity login(MemberUserLoginVo vo);
}

